package com.antler.smt.portal.mapper;

import com.antler.smt.entity.RecruitmentInfoEntity;
import com.antler.smt.request.portal.ClassificationRecruitmentReq;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Repository;


@Repository
public interface RecruitmentInfoMapper {

    /**
     * 获取用户点击的次数
     *
     * @param id
     * @return
     */
    int selectClickes(Long id);

    /**
     * 分类查询招聘需求实体(0 未提交待审核、1提交未审核 2 审核通过 3 审核不通过)
     *
     * @param req
     * @return
     */
    Page<RecruitmentInfoEntity> classificationSelect(ClassificationRecruitmentReq req);

    /**
     * 获取申请人数
     *
     * @param id
     * @return
     */
    int selectApplyCount(Long id);

    /**
     * 插入招聘需求，返回主键id
     *
     * @param recruitmentInfoEntity
     * @return
     */
    Long insertRecruitment(RecruitmentInfoEntity recruitmentInfoEntity);
}